ModuleInfo "Name: sedm.blitz3dogre"
ModuleInfo "Description: Ogre3D based 3D Engine for BlitzMax"
ModuleInfo "Licence: Ogre3D Engine License"
ModuleInfo "Author: Jens [bruZard] Henschel"
import brl.blitz
import sedm.bo3d
import sedm.bullet
import brl.map
import brl.d3d9max2d
RSS_DIRECT3D9%=1
RSS_OPENGL%=2
RSS_DIRECT3D9_D%=3
RSS_OPENGL_D%=4
B3DEntity^brl.blitz.Object{
_list:brl.linkedlist.TList&=mem:p("_sedm_blitz3dogre_B3DEntity__list")
._typ%&
.obj:Object&
._rigidbody:sedm.bullet.TRigidBody&
-New%()="_sedm_blitz3dogre_B3DEntity_New"
-Delete%()="_sedm_blitz3dogre_B3DEntity_Delete"
}="sedm_blitz3dogre_B3DEntity"
TBlitz3D^brl.blitz.Object{
_root:sedm.bo3d.Root&=mem:p("_sedm_blitz3dogre_TBlitz3D__root")
_rendersystem:sedm.bo3d.RenderSystem&=mem:p("_sedm_blitz3dogre_TBlitz3D__rendersystem")
_renderwindow:sedm.bo3d.RenderWindow&=mem:p("_sedm_blitz3dogre_TBlitz3D__renderwindow")
_logmanager:sedm.bo3d.LogManager&=mem:p("_sedm_blitz3dogre_TBlitz3D__logmanager")
_scenemanager:sedm.bo3d.SceneManager&=mem:p("_sedm_blitz3dogre_TBlitz3D__scenemanager")
_resGroupManager:sedm.bo3d.ResourceGroupManager&=mem:p("_sedm_blitz3dogre_TBlitz3D__resGroupManager")
_viewport:sedm.bo3d.Viewport&=mem:p("_sedm_blitz3dogre_TBlitz3D__viewport")
_rootscenenode:sedm.bo3d.SceneNode&=mem:p("_sedm_blitz3dogre_TBlitz3D__rootscenenode")
_resloc:brl.linkedlist.TList&=mem:p("_sedm_blitz3dogre_TBlitz3D__resloc")
instance@&=mem:b("_sedm_blitz3dogre_TBlitz3D_instance")
._renderer%&
._plugin_cfg$&
._config_file$&
._logfile$&
._apptitle$&
._gfx:brl.graphics.TGraphics&
._physics:sedm.bullet.TBullet&
.cmp:sedm.bo3d.CompositorManager&
.entities:brl.map.TMap&
-New%()="_sedm_blitz3dogre_TBlitz3D_New"
-Delete%()="_sedm_blitz3dogre_TBlitz3D_Delete"
-Init%(plugins$=$"plugins.cfg",config$=$"ogre.cfg",logfile$=$"ogre.log")="_sedm_blitz3dogre_TBlitz3D_Init"
+addResLoc%(location$,locType$=$"FileSystem")="_sedm_blitz3dogre_TBlitz3D_addResLoc"
-setRenderer%(renderer%=1)="_sedm_blitz3dogre_TBlitz3D_setRenderer"
-AppTitle%(title$)="_sedm_blitz3dogre_TBlitz3D_AppTitle"
-Graphics3D%(width%,Height%,depth%=0,hertz%=60,flags%=0)="_sedm_blitz3dogre_TBlitz3D_Graphics3D"
-Graphics3DExt%(width%,Height%,depth%=0,hertz%=60,hWnd%=0,renderer%=1)="_sedm_blitz3dogre_TBlitz3D_Graphics3DExt"
-EndGraphics%()="_sedm_blitz3dogre_TBlitz3D_EndGraphics"
-RenderWorld%()="_sedm_blitz3dogre_TBlitz3D_RenderWorld"
-startPhysics%(gravX#=0#,gravY#=-9.81#,gravZ#=0#)="_sedm_blitz3dogre_TBlitz3D_startPhysics"
-endPhysics%()="_sedm_blitz3dogre_TBlitz3D_endPhysics"
-_AddEntity%(entity_name$,ent:B3DEntity)="_sedm_blitz3dogre_TBlitz3D__AddEntity"
-_findEntity:B3DEntity(entity_name$)="_sedm_blitz3dogre_TBlitz3D__findEntity"
}="sedm_blitz3dogre_TBlitz3D"
SetRenderer%(renderer%=1)="sedm_blitz3dogre_SetRenderer"
Init%(plugins$=$"plugins.cfg",config$=$"ogre.cfg",logfile$=$"ogre.log")="sedm_blitz3dogre_Init"
Graphics3D%(width%,Height%,depth%=0,hertz%=60,flags%=0)="sedm_blitz3dogre_Graphics3D"
Graphics3DExt%(width%,Height%,depth%=0,hertz%=60,hWnd%=0,renderer%=1)="sedm_blitz3dogre_Graphics3DExt"
RenderWorld%()="sedm_blitz3dogre_RenderWorld"
UpdateWorld%()="sedm_blitz3dogre_UpdateWorld"
shutDownOgre%()="sedm_blitz3dogre_shutDownOgre"
AmbientLight%(r#,g#,b#)="sedm_blitz3dogre_AmbientLight"
SetShadowTechnique%(technique%=18)="sedm_blitz3dogre_SetShadowTechnique"
setShadowFarDistance%(distance#=100#)="sedm_blitz3dogre_setShadowFarDistance"
SetShadowTextureSize%(texsize%=512)="sedm_blitz3dogre_SetShadowTextureSize"
getSceneManager:sedm.bo3d.SceneManager()="sedm_blitz3dogre_getSceneManager"
getPhysicsHandle:sedm.bullet.TBullet()="sedm_blitz3dogre_getPhysicsHandle"
LoadSkyBox%(materialFile$,distance#=5000#)="sedm_blitz3dogre_LoadSkyBox"
getBlitz3D:TBlitz3D()="sedm_blitz3dogre_getBlitz3D"
Physics%(gravX#=0#,gravY#=-9.81#,gravZ#=0#)="sedm_blitz3dogre_Physics"
PositionEntity%(ent%,X#,Y#,Z#)="sedm_blitz3dogre_PositionEntity"
MoveEntity%(ent%,x#,y#,z#,relativeTo%=1)="sedm_blitz3dogre_MoveEntity"
TurnEntity%(ent%,x#,y#,z#,relativeTo%=1)="sedm_blitz3dogre_TurnEntity"
CreatePivot%()="sedm_blitz3dogre_CreatePivot"
EntityParent%(ent%,parent%)="sedm_blitz3dogre_EntityParent"
EntityX#(ent%)="sedm_blitz3dogre_EntityX"
EntityY#(ent%)="sedm_blitz3dogre_EntityY"
EntityZ#(ent%)="sedm_blitz3dogre_EntityZ"
PointEntity%(ent%,target%)="sedm_blitz3dogre_PointEntity"
FreeEntity%(ent%)="sedm_blitz3dogre_FreeEntity"
EntityShadows%(ent%,enable@=0)="sedm_blitz3dogre_EntityShadows"
CopyEntity%(ent%)="sedm_blitz3dogre_CopyEntity"
DynamicEntity%(ent%,collisionShapeType%=1,mass#=1#,playerControlled@=0)="sedm_blitz3dogre_DynamicEntity"
createCamera%()="sedm_blitz3dogre_createCamera"
CameraClsColor%(cam%,r#,g#,b#)="sedm_blitz3dogre_CameraClsColor"
CameraRange%(cam%,nearClipDistance#,farClipDistance#)="sedm_blitz3dogre_CameraRange"
ScreenFX%(cam%,fx$)="sedm_blitz3dogre_ScreenFX"
LoadMesh%(filename$)="sedm_blitz3dogre_LoadMesh"
MeshWidth#(m%)="sedm_blitz3dogre_MeshWidth"
MeshHeight#(m%)="sedm_blitz3dogre_MeshHeight"
MeshDepth#(m%)="sedm_blitz3dogre_MeshDepth"
CreateLight%(lightType%=0)="sedm_blitz3dogre_CreateLight"
LightColor%(l%,r#,g#,b#)="sedm_blitz3dogre_LightColor"
LightSpecColor%(l%,r#,g#,b#)="sedm_blitz3dogre_LightSpecColor"
LightRange%(l%,rng#=1000#)="sedm_blitz3dogre_LightRange"
LightConeAngles%(spotlight%,innerAngle#=0#,outerAngle#=90#)="sedm_blitz3dogre_LightConeAngles"
LightShadowRange%(l%,nearShadowDistance#=0.1#,farShadowDistance#=100#)="sedm_blitz3dogre_LightShadowRange"
BLEND_ALPHA%=1
BLEND_MULTIPLY%=2
BLEND_ADD%=3
BLEND_COLOR%=4
BLEND_REPLACE%=5
GetEntityBrush%(ent%)="sedm_blitz3dogre_GetEntityBrush"
CopyEntityBrush%(ent%)="sedm_blitz3dogre_CopyEntityBrush"
GetSurfaceBrush%(ent%,surface%)="sedm_blitz3dogre_GetSurfaceBrush"
PaintEntity%(ent%,brush%)="sedm_blitz3dogre_PaintEntity"
BrushColor%(brush%,r#,g#,b#)="sedm_blitz3dogre_BrushColor"
BrushShininess%(brush%,shininess#)="sedm_blitz3dogre_BrushShininess"
BrushAlpha%(brush%,a#)="sedm_blitz3dogre_BrushAlpha"
BrushBlend%(brush%,blend%=1)="sedm_blitz3dogre_BrushBlend"
BFX_NOTHING%=0
BFX_FULLBRIGHT%=1
BFX_VERTEX_COLORS%=2
BFX_FLATSHADED%=4
BFX_DISABLE_FOG%=8
BFX_NO_BACKFACE_CULLING%=16
BFX_TRANSPARENCY_CASTS_SHADOWS%=32
BrushFX%(brush%,flags%)="sedm_blitz3dogre_BrushFX"
BrushName$(brush%)="sedm_blitz3dogre_BrushName"
GetBrushByName%(brush_name$)="sedm_blitz3dogre_GetBrushByName"
GetBrushTechnique%(brush%,index%=0)="sedm_blitz3dogre_GetBrushTechnique"
GetBrushPass%(tech%,passIndex%=0)="sedm_blitz3dogre_GetBrushPass"
GetPassPars%(brush_pass%)="sedm_blitz3dogre_GetPassPars"
SetBrushConstantF%(fppars%,par_name$,par_value#)="sedm_blitz3dogre_SetBrushConstantF"
CompileBrush%(brush%)="sedm_blitz3dogre_CompileBrush"
UpdateBrushPass%(brush_pass%)="sedm_blitz3dogre_UpdateBrushPass"
_blitzogre3d:TBlitz3D&=mem:p("sedm_blitz3dogre__blitzogre3d")
